package com.train.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.train.common.annotation.Excel;
import com.train.common.core.domain.BaseEntity;

/**
 * 系统通知对象 sys_notification
 * 
 * @author train
 * @date 2025-10-27
 */
public class SysNotification extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    private Long notificationId;

    /** 通知标题 */
    @Excel(name = "通知标题")
    private String title;

    /** 通知内容 */
    @Excel(name = "通知内容")
    private String content;

    /** 通知类型（0系统通知 1活动通知） */
    @Excel(name = "通知类型", readConverterExp = "0=系统通知,1=活动通知")
    private String type;

    /** 目标用户ID（null表示全体用户） */
    @Excel(name = "目标用户ID", readConverterExp = "n=ull表示全体用户")
    private Long targetUserId;

    /** 状态（0正常 1已发布） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=已发布")
    private String status;

    public void setNotificationId(Long notificationId) 
    {
        this.notificationId = notificationId;
    }

    public Long getNotificationId() 
    {
        return notificationId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setTargetUserId(Long targetUserId) 
    {
        this.targetUserId = targetUserId;
    }

    public Long getTargetUserId() 
    {
        return targetUserId;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("notificationId", getNotificationId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("type", getType())
            .append("targetUserId", getTargetUserId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
